package com.hyts.generate.mybatisplus.config;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.generator.config.rules.DateType;

/**
 * Copyright [2019] [LiBo/Alex of copyright liboware@gmail.com ]
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
public interface DefaultAttributeConfig {


    String PROJECT_PATH = DefaultAttributeConfig.class.getClassLoader().
            getResource("/").getFile();

    String DEFAULT_POSITION_STRING_TOKEN = "%s";

    /************************************DEFAULT FRAME ATTRIBUTE VALUE**************************************************/

    String DEFAULT_MAPPER_CLASS_NAME_SUBFIX = DEFAULT_POSITION_STRING_TOKEN+"Mapper";

    String DEFAULT_MAPPER_XML_NAME_SUBFIX = DEFAULT_MAPPER_CLASS_NAME_SUBFIX;

    String DEFAULT_SERVICE_INTERFACE_CLASS_SUBFIX = DEFAULT_POSITION_STRING_TOKEN+"Service";

    String DEFAULT_SERVICE_IMPL_CLASS_SUBFIX = DEFAULT_POSITION_STRING_TOKEN+"ServiceImpl";

    String DEFAULT_CONTROLLER_CLASS_SUBFIX = DEFAULT_POSITION_STRING_TOKEN+"Controller";

    //只使用 java.util.date 代替
    DateType DEFAULT_FIELD_DATE_TYPE = DateType.ONLY_DATE;

    IdType DEFAULT_ID_GENERATOR_TYPE = IdType.ID_WORKER;

    boolean DEFAULT_ENABLED_SWAGGER2 = true;

    boolean DEFAULT_OPEN_DIRECTORY_OUTPUT = true;

    String DEFAULT_AUTHOR_NAME = "coffice-toolbox-codegen";


    String DEFAULT_PACKAGE_PARENT_PATH = "com.hyts.generate";

    String DEFAULT_MODULE_NAME = "module";

    String DEFAULT_TAB_PREFIX = "TBL_";
}

